const memberTableHead = [
    {
        field: "xh",
        title: "序号",
        width: 60,
        rowspan: 1,
        colspan: 1,
        types: 'index'//获取索引值
    },
    {
        field: "cardNum",
        title: "会员卡号",
        width: 180,
        rowspan: 1,
        colspan: 1,
        align: "center"
    },
    {
        field: "name",
        title: "会员姓名",
        width: 120,
        rowspan: 1,
        colspan: 1,
        align: "center"
    },
    {
        field: "birthday",
        title: "会员生日",
        width: 140,
        rowspan: 1,
        colspan: 1,
        align: "center"
    },
    {
        field: "phone",
        title: "手机号码",
        width: 140,
        rowspan: 1,
        colspan: 1,
        align: "center"
    },
    {
        field: "integral",
        title: "可用积分",
        width: 120,
        rowspan: 1,
        colspan: 1,
        align: "center"
    },
    {
        field: "money",
        title: "开卡金额",
        width: 120,
        rowspan: 1,
        colspan: 1,
        align: "center"
    },
    {
        field: "payType",
        title: "支付类型",
        width: 120,
        rowspan: 1,
        colspan: 1,
        align: "center"
    },
    {
        field: "address",
        title: "会员地址",
        width: 220,
        rowspan: 1,
        colspan: 1,
        align: "center"
    }
]
const paytypeOptions = [
    { type: '1', name: '现金' },
    { type: '2', name: '微信' },
    { type: '3', name: '支付宝' },
    { type: '4', name: '银行卡' },
]


/**
 * 校验规则
 */
// 供应商---------------------------
const supplierRules = {
    //校验规则
    name: [{
        required: true,
        message: "供应商名称不能为空",
        trigger: "blur"
    }],
    linkman: [{
        required: true,
        message: "联系人不能为空",
        trigger: "blur"
    }],
    mobile: [{
        required: true,
        message: "联系电话不能为空",
        trigger: "blur"
    },
    { min: 11, max: 11, message: '长度必须为11个字符', trigger: 'blur' }],
}


export {
    memberTableHead, paytypeOptions,supplierRules
}